import java.io.Console;

public class AbsValue {

	public static void main(String[] args) {
		
		Console console = System.console();
			
		System.out.print("Please enter a number: ");
		int x = Integer.parseInt(console.readLine());
			
		if (x < 0)
		{
			x = -x;
		}
			
		System.out.println("|X| = " + x);
	}

}
